Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Extend policy validation to support update and delete actions #522

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pouriyabp
Copy link

@pouriyabp pouriyabp commented Dec 18, 2024

This fix enhances the policy validation function to support the update and delete actions, in addition to the previously supported action keyword.

Per the documentation on Fine-grained Permissions for update/delete actions, the update and delete actions allow users to perform operations on an application and all of its resources. Additionally, these actions can be scoped to specific resources using the <action>/<group>/<kind>/<ns>/<name> format.

To align with this functionality, the regex used in policy validation has been updated to recognize update and delete as valid actions. This ensures that policies leveraging fine-grained permissions for update and delete are now properly validated.


Fixes #524

@pouriyabp
Copy link
Author

issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to Define Policy with Specific Actions in ArgoCD Provider
1 participant